'use strict';

/**
 * author:Administrator
 * date:2015/11/30
 * desc:明星的脸
 */

var mongoose = require('../conn/mongoose.js');
var Schema = mongoose.Schema;

// create a schema
var __modelName = 'faceStar';
var __collectionName = 'faceStar';
var theModel = new Schema({
  starid: {type: Number, 'default': 0, unique: true},
  name: {type: String, 'default': 'no-name'},
  path: String,
  rpath: String
});


// 指定collection name，默认是复数
module.exports = mongoose.model(__modelName, theModel, __collectionName);
